package com.testplatfrom.project.domain.dto.environment;

import com.testplatfrom.project.domain.TestplatfromAssert;
import com.testplatfrom.project.domain.TestplatfromDatabase;
import com.testplatfrom.project.domain.TestplatfromHttpconfiguration;
import com.testplatfrom.project.domain.TestplatfromVariable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel("新增环境")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TestplatfromEnvironmentDetail {

    /**
     * 项目id
     */
    @ApiModelProperty("项目ID")
    @NotEmpty(message = "项目id不能为空")
    private String testplatfromProjectId;

    /**
     * 环境名称
     */
    @ApiModelProperty("环境名称")
    @NotEmpty(message = "环境名称不能为空")
    private String environmentName;


    @ApiModelProperty("HTTP配置")
    private List<TestplatfromHttpconfiguration> testplatfromHttpconfigurationList;


    @ApiModelProperty("数据库链接配置")
    private List<TestplatfromDatabase> testplatfromDatabaseList;

    @ApiModelProperty("全局断言")
    private List<TestplatfromAssert> testplatfromAssertList;


    @ApiModelProperty("通用配置")
    private List<TestplatfromVariable> testplatfromVariableList;
}
